import request from '@/common/js/request.js'
// import { formatGetUri } from '@/common/util.js'

const api = {}
const PORT1 = '/index/index'

// api.demo = params => request.globalRequest(`${PORT1}/demo`, 'GET', params)

// 登陆
api.fourLogin = params => request.globalRequest(`/login`, 'POST', params)
// 微信授权登陆
api.wxLogin = params => request.globalRequest(`/wxLogin`, 'POST', params)
// 获取个人信息
api.getMes = params => request.globalRequest(`/getMes`, 'GET', params)
// 绑定情侣关系
api.bindLovers = params => request.globalRequest(`/bindLovers`, 'POST', params)
// 签到
api.signIn = params => request.globalRequest(`/signIn`, 'POST', params)
// 签到列表
api.signList = params => request.globalRequest(`/signList`, 'GET', params)
// 纪念日列表
api.anniverList = params => request.globalRequest(`/anniverList`, 'GET', params)
// 纪念日详情
api.anniverInfo = params => request.globalRequest(`/anniverInfo`, 'GET', params)
// 修改
api.anniverDay = params => request.globalRequest(`/anniverDay`, 'POST', params)
// 添加
api.add_Anniver = params => request.globalRequest(`/add_Anniver`, 'POST', params)
// 删除
api.del_anniver = params => request.globalRequest(`/del_anniver`, 'POST', params)

export default api